#include "paint.h"

Paint::Paint(/*QWidget *parent*/) : QWidget(/*parent*/)
{

    m_timer = new QTimer(this);
    m_timer->setInterval(100);
    connect(m_timer, SIGNAL(timeout()), this, SLOT(update()));
    m_timer->start();
}
void Paint::paintEvent(QPaintEvent *p)
{
    QPainter pa(this);
    if(!image.isNull())
        pa.drawImage(0,0,image);
}


